package com.example.ware.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.ware.model.po.Ware;
import com.example.ware.model.vo.WareInfo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface WareMapper extends BaseMapper<Ware> {

//    根据条件获取ware前十条
    public List<WareInfo> getWareList(String name, String location, Integer pageNum, Integer pageSize);

//    获取所有的ware
    public List<Ware> getWareAll(String name,String location);


//    获取指定的仓库信息
    @Select("select * from ware w where w.id=#{id}  ")
    public WareInfo getOne(String id);


}
